<?php if(isDevMode()): ?>
<link rel="stylesheet" type="text/css" href="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/jquery.jqplot.css")?>"/>
<script language="javascript" type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/jquery.jqplot.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.highlighter.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.cursor.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.dateAxisRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.pieRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.donutRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.barRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.categoryAxisRenderer.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/plugins/jqplot.pointLabels.min.js")?>"></script>
<script type="text/javascript" src="<?=OC_Helper::linkTo("", "themes/jobs/core/js/jquery/ui/minified/jquery.ui.datepicker.min.js")?>"></script>
<?php
   OCP\Util::addStyle('reports', 'reports');
   OCP\Util::addScript('reports', 'reports');
   OCP\Util::addScript('reports', 'contrast');
else:
   OCP\Util::addStyle('static', 'reports');
   OCP\Util::addScript('static', 'apps/reports.min');
endif;
?>
<!--[if IE]>
<?php if(isDevMode()): ?>
   <script type="text/javascript" src="<?php echo OC_Helper::linkTo("", "themes/jobs/core/js/jquery/jqplot/excanvas.js"); ?>"></script>
<?php else:?>
   <?php PUtil::loadJs("static/js/jquery/plugin/jqplot.excanvas.min.js"); ?>
<?php endif; ?>
<![endif]-->

<?php
defined('_JEXEC') or die;

OCP\App::setActiveNavigationEntry('reports_index');
?>

<?=$_['nav']?>

<div class="rep_innerwrap contrast has_search">
   <div class="cotst_tabwrap">
      <div class="rep_sumtopcotst clearfix hide">
         <div class="pull-right"><a href="#"><i class="print"></i> 打印</a></div>
         <div class="pull-right"><a href="#"><i class="export"></i> 导出</a></div>
      </div>

      <ul class="nav nav-tabs">
         <li class="active"><a href="#cot_tab1" data-toggle="tab" data-type="summary">时段对比</a></li>
         <li><a href="#cot_tab2" data-toggle="tab" data-type="source">渠道对比</a></li>
      </ul>

      <div class="tab-content">
         <div class="tab-pane active" id="cot_tab1">
            <div class="rep_sumtop contrast_rep_sumtop clearfix">
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrst_job">新增职位</a>
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrst_resume">新增简历</a>
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrst_event">进入面试</a>
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrst_offer">发offer</a>
               <a href="javascript:;" class="linkto last pull-left" data-anchor="#anchor_ctrst_entry">入职</a>
            </div>

            <div class="rep_summaryrep">
               <form id="summarycontrast" name="summarycontrast" class="reportfrom" method="get" action="<?=OC_Helper::linkTo('reports','ajax/getsummarycontrast.php')?>" autocomplete="off" data-container="#summaryChartContent">
                  <?=PReportsHelper::showDateBar(true);?>
                  <input name="fid" type="hidden" value="<?=JRequest::getInt('fid', 0);?>">
               </form>
            </div>

            <div id="summaryChartContent" class="content"></div>
         </div>

         <div class="tab-pane" id="cot_tab2">
            <div class="rep_sumtop contrast_rep_sumtop clearfix">
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrstsp_event">面试率</a>
               <a href="javascript:;" class="linkto pull-left" data-anchor="#anchor_ctrstsp_retest">复试率</a>
               <a href="javascript:;" class="linkto last pull-left" data-anchor="#anchor_ctrstsp_entry">入职率</a>
            </div>

            <form id="sourcecontrast" name="sourcecontrast" class="reportfrom" method="get" action="<?=OC_Helper::linkTo('reports','ajax/getsourcecontrast.php')?>" autocomplete="off" data-container="#sourceChartContent">
               <div class="rep_summaryrep">
                  <?=PReportsHelper::showDateBar();?>
                  <input name="fid" type="hidden" value="<?=JRequest::getInt('fid', 0);?>">
               </div>
               <div id="sourceChartContent" class="content"></div>
            </form>

         </div>
      </div>
   </div>
</div>
